package org.jeecg.modules.hc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.List;

/**
 * @Description: 企业订餐菜品设置
 * @Author: jeecg-boot
 * @Date:   2023-07-10
 * @Version: V1.0
 */
@Data
@TableName("hc_company_food_list")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="hc_company_food_list对象", description="企业订餐菜品设置")
public class HcCompanyFoodList implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**企业ID*/
	@Excel(name = "企业ID", width = 15)
    @ApiModelProperty(value = "企业ID")
    private java.lang.String companyId;
	/**商户ID*/
	@Excel(name = "商户ID", width = 15)
    @ApiModelProperty(value = "商户ID")
    private java.lang.String merchantId;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "商品名称")
    private java.lang.String foodName;
	/**限购数量*/
	@Excel(name = "限购数量", width = 15)
    @ApiModelProperty(value = "限购数量")
    private java.lang.Integer limitNum;
    /**已购数量*/
    @Excel(name = "可购数量", width = 15)
    @ApiModelProperty(value = "可购数量")
    private java.lang.Integer buyedNum;
	/**商品图片*/
	@Excel(name = "商品图片", width = 15)
    @ApiModelProperty(value = "商品图片")
    private java.lang.String foodPic;
	/**商品描述*/
	@Excel(name = "商品描述", width = 15)
    @ApiModelProperty(value = "商品描述")
    private java.lang.String foodDescription;
	/**售卖价格*/
	@Excel(name = "售卖价格", width = 15)
    @ApiModelProperty(value = "售卖价格")
    private java.math.BigDecimal salePrice;
	/**合作价格*/
	@Excel(name = "合作价格", width = 15)
    @ApiModelProperty(value = "合作价格")
    private java.math.BigDecimal cooperatePrice;
	/**是否启用规格*/
	@Excel(name = "是否启用规格", width = 15)
    @ApiModelProperty(value = "是否启用规格(yes,no)")
    private java.lang.String isUseSpecifications;
    /**是否启用规格*/
    @Excel(name = "是否必选菜品", width = 15)
    @ApiModelProperty(value = "是否必选菜品(yes,no)")
    private java.lang.String isLimitSelect;

	@TableField(exist = false)
	List<HcCompanyFoodSpecifications> specifications;
    @TableField(exist = false)
    private java.lang.String companyDetailId;


}
